mixin breadcrumb (items)
    .bread-crumb.layui-container
        a.item(href= "/") 首页
        each item in items
            a.item(href=BASE_URL + item.href)=item.name

mixin dateFormat (timezone, isOnlyText = false)
    - 
        year = new Date(timezone).getFullYear()
        month = new Date(timezone).getMonth() + 1
        day = new Date(timezone).getDate() 
    if (isOnlyText)
        span=year + '年' + month + '月' + day + '日'
    else
        .date=year + '年' + month + '月' + day + '日'